import axios from 'axios'
import { dateFormat } from '@/utils/functions.js'
export async function getTime(){
  const url = 'http://quan.suning.com/getSysTime.do'
  let thisTime = await axios
    .get(url)
    .then(e=>{
      const {sysTime2} = e.data
      return sysTime2
    })
    .catch(e=>{
      return dateFormat('Y-M-D h:m:s',new Date())
    })
  return thisTime
}